package org.ahuanlien.crm.service;

import org.ahuanlien.crm.domain.Role;
import org.ahuanlien.crm.query.QueryObject;
import org.ahuanlien.crm.util.PageResult;

import java.util.List;

public interface IRoleService {

	List<Role> selectAll();

	PageResult query(QueryObject qo);

	void saveOrUpdate(Role role);

	void deleteByPrimaryKey(Long id);

	List<Long> getRoleIdByEmployeeId(Long employeeId);

	List<Long> getMenuIdByRoleId(Long roleId);

	List<String> getRoleNameByEmployeeId(Long id);
}
